/*
 * @Description:
 * @Version: 2.0
 * @Autor: wiz
 * @Date: 2023-07-09 15:42:41
 * @LastEditors: wiz
 * @LastEditTime: 2023-07-09 16:29:03
 */

namespace N_oTree {
  export interface I_data {
    checked: number | boolean;
    // 是否展开
    expand?: number | boolean;
    id: number | string;
    // 是否节点
    isNode?: number | boolean;
    // 父id值
    parentId: number | string;
    // 选择？
    selected?: number | boolean;
    // 标题
    title: string;
    // 右键菜单
    contextmenu?: number | boolean;
    // 圆
    circle?: number | boolean;
  }

  export interface I_conf {
    data: Array<I_data>;
    // 行key字段名
    keyName: string;
    // 节点图标 参考iView icon ios-folder-outline
    nodeIcon: string;
    // 叶子图标 ios-add-circle-outline
    leafIcon: string;
    // 多选框
    showCheckbox?: boolean;
    // 父ID 字段名
    parentKeyName: string;
  }
}
export { N_oTree };
